class ArrayQueue{
    constructor(){
        this._list = []
    }
    enqueue(item){
        this._list.push(item)
    }
    dequeue(){
        return this._list.shift()
    }

}

class AsyncQueue{
    constructor({name,parallism,processor,getKey}){
        this._name = name;
        this._parallelism = parallism;
        this._processor = processor;
        this._getKey = getKey
    }
    //向队列中添加任务,然后判断一下
    add(item,callback){

    }
}

module.exports = ArrayQUeue